﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace MyMario.Helpers
{
   static class LoadHelp
    {
    
       public static Dictionary<TextureEnum, Texture2D> Textures;
       public static Dictionary<FontEnum, SpriteFont> Fonts;
      

       public static void LoadTexture(ContentManager content)
       {
           Textures = new Dictionary<TextureEnum, Texture2D>();
           Fonts = new Dictionary<FontEnum, SpriteFont>();

           Textures.Add(TextureEnum.Person, content.Load<Texture2D>(@"Textures\person"));
           Textures.Add(TextureEnum.PersonJump, content.Load<Texture2D>(@"Textures\jump"));
           Textures.Add(TextureEnum.PersonRunleft, content.Load<Texture2D>(@"Textures\runleft"));
           Textures.Add(TextureEnum.PersonRunright, content.Load<Texture2D>(@"Textures\runright"));
           Textures.Add(TextureEnum.Ground, content.Load<Texture2D>(@"Textures\ground"));
           Textures.Add(TextureEnum.Block, content.Load<Texture2D>(@"Textures\block"));
           Textures.Add(TextureEnum.Money, content.Load<Texture2D>(@"Textures\money"));
           Textures.Add(TextureEnum.GhoustLeft, content.Load<Texture2D>(@"Textures\ghostleft"));
           Textures.Add(TextureEnum.GhoustRight, content.Load<Texture2D>(@"Textures\ghostright"));
           Textures.Add(TextureEnum.Finish, content.Load<Texture2D>(@"Textures\finish"));

           Fonts.Add(FontEnum.Arial22, content.Load<SpriteFont>(@"Fonts\Arial22"));
           Fonts.Add(FontEnum.Arial42, content.Load<SpriteFont>(@"Fonts\Arial42"));
       }

      /* public static void LoadLevel(ContentManager content)
       {
           Levels = new Dictionary<LevelEnum, string>();

           Levels.Add(LevelEnum.Level1, content.Load<string>(@"Levels\level1"));
       }*/
   }

   public enum TextureEnum
   {
       Person,
       PersonJump,
       PersonRunleft,
       PersonRunright,
       Ground,
       Block,
       Money,
       GhoustRight,
       GhoustLeft,
       Finish
   }

   public enum FontEnum
   {
       Arial22,
       Arial42
   }

}
